<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'test.jsp' starting page</title>
  	
  	 <script type="text/javascript">
    	
    	var jsonObj = {
    		"name":"likang",
    		"age":12,
    		"address":{
    			"city":"hubei",
    			"shool":"yizhong"
    		},
    		"teaching":function(){
    			testJson();
    		}
    	};
    	
    	alert(jsonObj.name);
    	alert(jsonObj.address.shool);
    	jsonObj.teaching();
    	function testJson(){
    		alert("test json...");
    	}
    </script>

  </head>
  
  <body>
    This is my JSP page. <br>
    
    Git commited
    
  </body>
</html>
